Latest Questions

Checking if a graph contain a given induced subgraph

I'm trying to detect some minimal patterns with properties in random digraphs. Namely, I have a list called patterns of adjacency matrix of various size. For in

Setting connection properties on the URL object

Question: Is there a way to set the connection properties on the URL object? Background: We are connecting to a remote server that requires certain connection p

link login page to homepage using react

I am trying to display first the log in page and then it goes to the home page but it does not work. Can Anyone figure out the problem? How Can I direct my logi

Calculate eccentricity vector of planetary ring particles

I wish to set-up an initially circular (e=0) system of planetary rings which I can later perturb over time and see how the eccentricity changes. However, my cal

should I still declare GOPATH?

I WAS reading Learning GO and suggest that needs to be declared on PATH GOPATH="/home/user/go". this is from author: it’s a good idea to explicitly defin

Google Sheets conditional formatting with differently styled dates

in Google Sheets I'd like to format an area of cells automatically by comparing its date value to another cell. In fact, I have some cells representing a month

Error when renaming multiple columns and using add_overall() in tbl_summary

I am trying to create summary tables. I want to split these by site and have a "Total" column. However, when I try to rename multiple columns AND use add_overal

Need to read csv files (when csv file is multiple input files) in Python

I have a school assignment that is asking me to write a program that first reads in the name of an input file and then reads the file using the csv.reader() met

Tags support is not enabled. You must use the flag "Yaml::PARSE_CUSTOM_TAGS" to use "!service_locator"

I am trying to add the webpack-encore-bundle to my Drupal site, I have this in services.yml file: services: webpack_encore.twig_entry_files_extension: cla

How to get the KeyVault name in the notebook from the keyvault link in Synapse?

How to get the KeyVault name in the notebook from the keyvault link in Synapse? I need the KeyVault name to pass to the TokenLibrary. TokenLibrary.getSecret(key

It looks like '' has not been IVY compiled - it has no 'ɵcmp' field

I am currently using Angular 11. When I run the unit tests, all pass except one which says: Error: It looks like 'ResultsService' has not been IVY compiled - it

unable to change timezone

I'm trying to change the timezone of my container into "Europe/paris", I saw I had to set TZ environment variable so I did this, but it doesn't change the timez

How to set rgb colored symbol on specific pos (Win terminal)?

Iam making terminal game but iam struggling with the render part, i want to set symbol on specific pos with rgb color. so first question is how to set symbol in

Get ETH Balance with Ethersjs

I'm trying to get the balance of my wallet address to render on my frontend. Here's what I have so far. const [balance, setBalance] = useState(""); const hand

Is possible create a css class name with numbers "from-to"?

I need to have 3 classes as follow: .class-4, .class-5, .class-6 { color: pink; } And it works perfectly. Let's say I need the same but for 100: .class-4,

Are there any WYSIWIG editor available for writing GitHub issues?

I am trying to import my issues from Notion to GitHub but finding the markdown system really hard to write/preview. Writing on markdown is still fine but if I w

My message got duplicated when reloading the page [duplicate]

I have a problem with my PHP and MySQL code. I was creating a private messaging system but unfortunately, each time I reload the page, the las

Rendering database data to browser in Django

I am having difficulties with showing database data in browser with Django. I have, for show my issue, just one date in my database. When I go to the Django She

MEF vs. IAsyncDisposable or iterate over all instantiated exports

I've shared MEF exports that implement IAsyncDisposable. If an export in MEF implements IDisposable it will be disposed when the composition container (or maybe

react-bootstrap-table-next onclick(row) not providing correct key/value information

I'm attempting to add an onClick() event to a cell in a row so that I can get the keyField value for that row when the cell is clicked. This functionality worke

Python-TensorFlow app FileNotFoundError: [Errno 2] No such file or directory

I am trying to test a simple Flask-TensorFlow Image Classifier app from docker container. The Docker containers were successfully deployed in an Ubuntu 22.10 EC

using webpack to import files dynamically inside react component

const LongDetail: React.FC<Props> = ({ id, section, placeholder, Fromtolocation, }) => { const { setPrimary, setSecondary, create

Truncate string with html tag in Laravel

I want to truncate in Laravel text from database with HTML Tag, for example: <p>Hi. I want to say about my story. </p> I found a method: {{ Str::li

Preserving prior form data when navigating back in Gatsbyjs

I have search page in Gatsbyjs where a filter form resides in the sidebar with multiple options. The page is generated from node.js using a template, where the

How to independently set a button click in react?

I am trying to figure out on how to set a button that can independently be disabled when using the .map function. So I created a state whenever the button is cl

Custom Acumatica report variable not working consistently

in Acumatica, the out of the box GL report" lists gl beginning balance, debits, credit and ending balance by Account / Sub-Account. MY client is requesting th

Using Recurrent Neural Networks for binary values prediction

EDIT: The problems stated have been solved, you'll first find the solution, the initial question is stated below! SOLUTION: Applying the .unsqueeze(0) to my inp

kaptGenerateStubsDebugKotlin fails on a Apple M1 Macbook (JDK 11)

I get this failure both in Android Studio and running ./gradlew assembleDebug on the command line on a new Macbook with Apple M1 Max chip. On my old Intel Mac t

Why are function pointers and data pointers incompatible in C/C++?

I have read that converting a function pointer to a data pointer and vice versa works on most platforms but is not guaranteed to work. Why is this the case? Sho

canvas not adding image from url (base 64)

i am working on project where i want to create a min preview for canvas. so when any change happen to canvas eg: user added text to canvas , the canvas will be